Crate serde_json_canonicalizer
source ·Expand description
Serde JSON Canonicalization
JSON Canonicalization Scheme RFC-8785 defines a JSON serialization scheme to allow using JSON data in cryptographic operations that rely byte level reproduction of data. It can be used instead of storing the serialized format as a BASE64 encoded string or similar packaging, allowing easier handling of JSON formatted data that can be canonicalized before feeding it to a cyrptographic function.
Functions
- Serialize the given data structure as a JCS byte vector.
- Serialize the given data structure as JCS into the I/O stream. Serialization guarantees it only feeds valid UTF-8 sequences to the writer.